time
Return the current Unix timestamp
time()
function returns the number of seconds of the current time since the Unix epoch (January 1 1970 00:00:00 GMT).
Returns the Unix timestamp of the current time and formats it as a date:
<?php $t = time ( ) ; echo ( $t . "<br>" ) ; echo ( date ( "Ymd" , $t ) ) ; ?>
Try it yourself
time ( ) ;